$('#login_user').html($.getLogin().currentUser.name);


$('#cc').combobox({
    data:$.getLogin().correlationUsers,
    valueField:'id',
    textField:'name',
    onChange:function(n,o){
        $.cpost('user/changeCurrent.do',{userId:n},function(data){
            $.messager.alert('提示','切换用户成功');
            $.changeCurrentUser(n);
            $('#login_user').html($.getLogin().currentUser.name);
            loadData();
        });

    }
});

function sendMaid(){
    $.messager.confirm('确认','是否发送日报?',function(r){

        if(r){
           $.cpost('report/sendReport.do',{},function(data){
                    if(data.result){
                        $.messager.alert('提示','发送成功');
                    }
                })
        }

    });
}